<%--
  Created by IntelliJ IDEA.
  User: DGW-PC
  Date: 2020/3/14
  Time: 19:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";

%>
<html>
<head>
    <base href="<%=basePath %>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Insert title here</title>
</head>
<body>
    <form method="post" action="<%=basePath%>user/login">
        <label for="name">用户名</label>
        <input id="name" type="text" name="username" value="<shiro:principal/>" >
        <br>
        <label for="pass">密码</label>
        <input id="pass" type="text" name="password">
        <button type="submit">提交</button>
    </form>
</body>
</html>
